package com.lagou.edu.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(value = "lagou-service-email",path = "/api/email")
//@RequestMapping("/resume")
public interface EmailServiceFeignClient {


    // Feign要做的事情就是，拼装url发起请求
    // 我们调用该方法就是调用本地接口方法，那么实际上做的是远程请求
    @PostMapping("/{email}/{code}")
    public boolean send(@PathVariable("email") String email, @PathVariable("code") String code) ;

}
